//Светофор
int car_red = 13; // пин подкючения
int car_yellow = 12; // пин подключения
int car_green = 11; // пин подключения
int people_red = 10; // пин подключения
int people_green = 9; // пин подключения
int buttom = 6; 

void setup()
{
      pinMode(car_red, OUTPUT);
      pinMode(car_yellow, OUTPUT);
      pinMode(car_green, OUTPUT);
      pinMode(car_red, OUTPUT);
      pinMode(car_green, OUTPUT
      pinMode(buttom, INPUT_PULLUP);
}

void loop()
{
    digitalWrite(car_yellow, LOW);
    digitalWrite(car_red, LOW);
    digitalWrite(car_green,HIGH);
    digitalWrite(people_green,LOW);
    digitalWrite(people_red,HIGT);
    while(digitalRead(buttom) ==1)
    {
         for(int i=0;i<2;i++)
         {
            
             digitalWrite(car_yellow, HIGH);
             digitalWrite(car_green, LOW);
             delay(500/16);
             digitalWrite(car_green, HIGT);
             delay(500/16);
          } 
         Car(1,0,0);
         people(0,1);
         delay(6000/16);
         for(int i = 0; i<2; i++)
        {
            Car(1,1,0);                              
            People(0, 0);
            delay(500/16);
            People(, 1);
            delay(500/16);
        }
    }

}
void Car(byte red, byte yellow,byte green);
    digitalWrite(car_red, red);
    digitalWrite(car_yellow, yellow);
    digitalWrte(car_green, green);
}
void People(byte red, byte green){
    digitalWrite(people_red, red);
    digitalWrite9people_green, green);
}